package com.clone.surpassli.clone_cloudreader.ui.menu;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.clone.surpassli.clone_cloudreader.R;
import com.clone.surpassli.clone_cloudreader.base.BaseActivity;
import com.clone.surpassli.clone_cloudreader.databinding.ActivityNavDownloadBinding;
import com.clone.surpassli.clone_cloudreader.utils.PerfectClickListener;
import com.clone.surpassli.clone_cloudreader.utils.ShareUtil;

/**
 * Created by SurpassLi on 2017/10/9.
 * NavDownLoadActivity
 */

public class NavDownLoadActivity extends BaseActivity<ActivityNavDownloadBinding>{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_nav_download);
        showContentView();
        setTitle("扫码下载");
        String url = "https://fir.im/cloudreader";
        mBindingView.tvShare.setOnClickListener(new PerfectClickListener() {
            @Override
            protected void onNoDoubleClick(View v) {
                ShareUtil.share(v.getContext(), R.string.string_share_text);
            }
        });
    }

    public static void start(Context mContext) {
        Intent intent = new Intent(mContext, NavDownLoadActivity.class);
        mContext.startActivity(intent);
    }
}